#ifndef WIFIDATA_H
#define WIFIDATA_H

#include <QObject>
#include <QProcess>
#include <QRegExp>

#include <QList>
#include <QMap>
#include <QVariant>

typedef QMap<QString, QVariant> Map;

class WiFiData : public QObject
{
    Q_OBJECT

    //QProcess *qproc_ifconfig;

    QProcess *qproc;
    QList< Map > listData;

public:
    explicit WiFiData(QObject *parent = 0);
    void requestWiFiData( const QString &iw_iface );
    inline QList< Map > getData() { return listData; }
    
signals:
    void dataReady(bool);
    void dataError();
    
public slots:
    void readMyStandartOutput(int);
    void readMyErrorOutput();
    void statusCh();
    
};

#endif // WIFIDATA_H
